package com.weseal.form;

import com.weseal.domain.Blacklist;
import com.weseal.domain.TimeInfo;
import com.weseal.domain.UserInfo;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
public class BlacklistForm implements Serializable {
	
	private static final long serialVersionUID = -3225091923702356820L;
	
	private Long id;
	
	private Long userId;
	/**
	 * 开始时间
	 */
	private Date startTime = new Date();
	/**
	 * 终止时间
	 */
	private Date terminalTime;
	/**
	 * 备注
	 */
	private String remark;
	
	public Long getUserId() {
		return userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public Date getStartTime() {
		return startTime;
	}
	
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	public Date getTerminalTime() {
		return terminalTime;
	}
	
	public void setTerminalTime(Date terminalTime) {
		this.terminalTime = terminalTime;
	}
	
	public String getRemark() {
		return remark;
	}
	
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	
	public Blacklist convert2Domain() {
		Blacklist blacklist = new Blacklist();
		BeanUtils.copyProperties(this, blacklist);
		return blacklist;
	}
	
}